<div class="form-main-wrapper">
  <div class="form-main-header form-main-header-blue">
    <h4><span class="form-main-header-status">Edit user account.</span></h4>
  </div>
  <div class="form-main-container">
      <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }, :validate => true) do |f| %>
        <div class="control-group">
          <%= f.label "Username" %>
          <div class="controls">
            <%= f.text_field :name %>
          </div>
        </div>

        <div class="control-group">
          <%= f.label "Email" %>
          <div class="controls">
            <%= f.email_field :email %>
          </div>
        </div>

        <div class="control-group">
          <%= f.label "Password" %>
          <div class="controls">
            <%= f.password_field :password, :autocomplete => "off" %>
            <i>(leave blank if you don't want to change it)</i>
          </div>
        </div>

        <div class="control-group">
          <%= f.label "Password Confirmation" %>
          <div class="controls">
            <%= f.password_field :password_confirmation %>
          </div>
        </div>

        <div><%= f.label "Current Password" %>
        <%= f.password_field :current_password %> <i>(need current password to confirm changes)</i></div>

        <div><%= f.submit "Update Account", :class => "btn btn-primary" %></div>
      <% end %>

      <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.</p>

    </div>
  </div>
</div>
